package com.azzcs.emailservice.controller;

import com.azzcs.emailservice.service.EmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wzg
 * @Date: 2021/2/22 下午5:39
 */
@RestController
@RequestMapping("email")
public class EmailController {

    @Autowired
    private EmailService emailService;

    @GetMapping("/sendCreateCodeEmail/{email}/{code}")
    public void sendCreateCodeEmail(@PathVariable("email")String email,
                               @PathVariable("code")String code){
        emailService.sendCreateCodeEmail(email,code);
    }
}
